import React, { Component } from 'react';
import { connect } from 'react-redux';

class Header2 extends Component {
	// 总数据
	state = {
		// 新增-弹窗开头
		mag: 'h111'
	}
	// 渲染函数
    render() {
    	const { msg1 } = this.props.commonData1;
    	const { msg3 } = this.props.commonData2;

    	return (
			<div>
				<div>msg1:{msg1}</div>
				<div>msg3:{msg3}</div>
			</div>
		);
    }
};

export default connect(state => ({
	commonData1: state.commonData1,
	commonData2: state.commonData2,
}), {
})(Header2);